﻿using System;
using System.Collections.Generic;
using System.Data;
using QLKS.BLL;
using QLKS.Entity;

namespace QLKS.Views
{
    public partial class Index : System.Web.UI.Page
    {
        DataTable tb = new DataTable();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Reload();
            }
        }
        void Reload()
        {
            List<DMPhong> lstData = DMPhongBUS.GetByAll(new DMPhong());
            if (lstData.Count > 0)
            {
                rep.DataSource = lstData;
                rep.DataBind();
            }

        }

        protected void btnSearch_Click(object sender, EventArgs e)
        {

        }

    }
}